﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MadProps.Definition
{
    public class DefaultMetadata : IMetadataBuilder
    {
        public void OnBuilding(MetadataBuildArgs args)
        {
            args.SetMetadata(Meta.PropertyName, args.ClrMember.Name);
            args.SetMetadata(Meta.DisplayName, args.ClrMember.Name);
            args.SetMetadata(Meta.Description, args.ClrMember.Name);
        }
    }
}
